package com.aaa.springboot.pojo;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * book
 * @author 
 */
@Data
public class Book implements Serializable {
    private static final long serialVersionUID = 4330774768597375615L;
    private Integer id;


    @NotBlank(message = "图书名称不能为空")
    private String bookname;
    @NotNull(message = "出版社id不能为空")
    private Integer pushlishid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdate;
    private String pic;


}